# 包含项目根目录
include_directories(${CMAKE_SOURCE_DIR})

# 源文件
set(SOURCES
    main.cpp
    SpikeRecoveryTestDemo.cpp
    SpikeRecoveryTestDemo.h
    ../../code/modbus/ModbusHelper.cpp
    ../../code/modbus/ModbusHelper.h
)

# 创建可执行文件
add_executable(SpikeRecoveryTestDemo ${SOURCES})

# 链接Qt5库和qtpromise
target_link_libraries(SpikeRecoveryTestDemo
    Qt5::Core
    Qt5::Widgets
    Qt5::SerialBus
    Qt5::SerialPort
    Qt5::Network
    qtpromise
)
